<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        p {
            display: flex;
        }
        span {
            width: 90px;
            text-align: center;
            line-height: 40px;
            border: 1px solid #000;
            margin-right: 20px;
        }
    </style>
</head>
<body>
    <!-- 
        <p>
            <span>1 * 1 = 1</span>
        </p>

        <p>
            <span>1 * 2 = 2</span>
            <span>2 * 2 = 4</span>
        </p> 
          <p>
            <span>1 * 2 = 2</span>
            <span>2 * 2 = 4</span>
        </p> 
    -->


    <script>

        for(var i = 1 ; i <= 9 ; i++) {
            document.write('<p>') ;
            for(var j = 1 ; j <= i ; j++) {
                document.write('<span>' + j + 'x' + i + '=' + j * i + '</span>') ;
                    
            }
            document.write('</p>') ;
        }

    </script>
    
</body>
</html>